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

Fix Ender Pearl Bug
This commit is contained in:
TheBrokenRail 2020-04-10 20:25:42 -04:00
parent 5d97fe0aa0
commit debafe02fb
3 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.0.15**
* Fix Ender Pearl Bug
**1.0.14**
* Fix Spawn Protection

View File

@ -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

View File

@ -33,12 +33,11 @@ public class MixinEnderPearlItem extends Item {
BlockState state = world.getBlockState(pos);
PlayerEntity user = context.getPlayer();
if (user != null && state.getBlock() == RelicCraft.TELEPORTATION_BEACON_BLOCK && state.get(AbstractDragonEggHolderBlock.ACTIVE)) {
if (!world.isClient()) {
assert user != null;
RelicCraft.playRelicSound(user);
}
if (user != null && state.getBlock() == RelicCraft.TELEPORTATION_BEACON_BLOCK && state.get(AbstractDragonEggHolderBlock.ACTIVE)) {
CompoundTag tag = new CompoundTag();
tag.putInt("TargetX", pos.getX());
tag.putInt("TargetY", pos.getY());