fixed pipe frames picking the wrong item in creative

This commit is contained in:
Ellpeck 2020-04-20 19:22:30 +02:00
parent d6a261f950
commit 0493df938f

View file

@ -23,6 +23,7 @@ import net.minecraft.util.Direction;
import net.minecraft.util.Hand;
import net.minecraft.util.SoundEvents;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.world.GameRules;
import net.minecraft.world.World;
import net.minecraft.world.storage.MapData;
@ -155,6 +156,11 @@ public class PipeFrameEntity extends ItemFrameEntity implements IEntityAdditiona
return false;
}
@Override
public ItemStack getPickedResult(RayTraceResult target) {
return new ItemStack(Registry.pipeFrameItem);
}
@Override
public IPacket<?> createSpawnPacket() {
return NetworkHooks.getEntitySpawningPacket(this);