Fix Ender Pearl Bug
This commit is contained in:
parent
5d97fe0aa0
commit
debafe02fb
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.0.15**
|
||||||
|
* Fix Ender Pearl Bug
|
||||||
|
|
||||||
**1.0.14**
|
**1.0.14**
|
||||||
* Fix Spawn Protection
|
* Fix Spawn Protection
|
||||||
|
|
||||||
|
@ -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.14
|
mod_version = 1.0.15
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
archives_base_name = reliccraft
|
archives_base_name = reliccraft
|
||||||
|
|
||||||
|
@ -33,12 +33,11 @@ public class MixinEnderPearlItem extends Item {
|
|||||||
BlockState state = world.getBlockState(pos);
|
BlockState state = world.getBlockState(pos);
|
||||||
PlayerEntity user = context.getPlayer();
|
PlayerEntity user = context.getPlayer();
|
||||||
|
|
||||||
|
if (user != null && state.getBlock() == RelicCraft.TELEPORTATION_BEACON_BLOCK && state.get(AbstractDragonEggHolderBlock.ACTIVE)) {
|
||||||
if (!world.isClient()) {
|
if (!world.isClient()) {
|
||||||
assert user != null;
|
|
||||||
RelicCraft.playRelicSound(user);
|
RelicCraft.playRelicSound(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user != null && state.getBlock() == RelicCraft.TELEPORTATION_BEACON_BLOCK && state.get(AbstractDragonEggHolderBlock.ACTIVE)) {
|
|
||||||
CompoundTag tag = new CompoundTag();
|
CompoundTag tag = new CompoundTag();
|
||||||
tag.putInt("TargetX", pos.getX());
|
tag.putInt("TargetX", pos.getX());
|
||||||
tag.putInt("TargetY", pos.getY());
|
tag.putInt("TargetY", pos.getY());
|
||||||
|
Reference in New Issue
Block a user