1.0.20
RelicCraft/pipeline/head This commit looks good Details

Tweak Item Handling in Creative Mode
This commit is contained in:
TheBrokenRail 2020-04-15 18:32:03 -04:00
parent bbf5965463
commit 4763e9a76b
3 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.0.20**
* Tweak Item Handling in Creative Mode
**1.0.19**
* Rewrite Creative Relic Generator Tooltip

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.7.10+build.191
# Mod Properties
mod_version = 1.0.19
mod_version = 1.0.20
maven_group = com.thebrokenrail
archives_base_name = reliccraft

View File

@ -63,17 +63,17 @@ public abstract class AbstractDragonEggHolderBlock extends Block implements Bloc
grantAdvancement(user);
}
return ActionResult.SUCCESS;
} else {
} else if (stack.isEmpty()) {
if (!inventory.getInvStack(0).isEmpty()) {
if (!user.isCreative()) {
user.inventory.offerOrDrop(world, inventory.getInvStack(0));
}
user.inventory.offerOrDrop(world, inventory.getInvStack(0));
inventory.removeInvStack(0);
return ActionResult.SUCCESS;
} else {
return ActionResult.PASS;
}
} else {
return ActionResult.PASS;
}
} else {
return ActionResult.FAIL;