Make 'em blocks placeable again!

This commit is contained in:
KennyTV 2019-05-22 19:55:19 +02:00
parent 85a5ae44e1
commit a29e88f535
2 changed files with 4 additions and 3 deletions

View File

@ -287,7 +287,7 @@ public class EntityType1_13 {
FISHIHNG_HOOK(90, EntityType.FISHING_BOBBER),
SPECTRAL_ARROW(91, EntityType.SPECTRAL_ARROW),
DRAGON_FIREBALL(93, EntityType.DRAGON_FIREBALL),
TRIDENT(94, EntityType.TRIDENT);
TRIDENT(94, EntityType.ARROW);
private final int id;
private final EntityType type;

View File

@ -88,8 +88,9 @@ public abstract class BlockItemRewriter<T extends BackwardsProtocol> extends Rew
}
protected Item handleItemToServer(Item item) {
if (item == null || item.getTag() == null)
return null;
if (item == null) return null;
if (item.getTag() == null) return item;
CompoundTag tag = item.getTag();
if (tag.contains("ViaBackwards|" + getProtocolName())) {
CompoundTag via = tag.get("ViaBackwards|" + getProtocolName());