Tweak Item Handling in Creative Mode
This commit is contained in:
parent
bbf5965463
commit
4763e9a76b
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user