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