mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-26 05:28:33 +01:00
fixed pipe frames picking the wrong item in creative
This commit is contained in:
parent
d6a261f950
commit
0493df938f
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue