1.0.20
All checks were successful
RelicCraft/pipeline/head This commit looks good

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 # Changelog
**1.0.20**
* Tweak Item Handling in Creative Mode
**1.0.19** **1.0.19**
* Rewrite Creative Relic Generator Tooltip * Rewrite Creative Relic Generator Tooltip

View File

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

View File

@ -63,17 +63,17 @@ public abstract class AbstractDragonEggHolderBlock extends Block implements Bloc
grantAdvancement(user); grantAdvancement(user);
} }
return ActionResult.SUCCESS; return ActionResult.SUCCESS;
} else { } else if (stack.isEmpty()) {
if (!inventory.getInvStack(0).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); inventory.removeInvStack(0);
return ActionResult.SUCCESS; return ActionResult.SUCCESS;
} else { } else {
return ActionResult.PASS; return ActionResult.PASS;
} }
} else {
return ActionResult.PASS;
} }
} else { } else {
return ActionResult.FAIL; return ActionResult.FAIL;