Skip to content

Commit ff11a23

Browse files
committed
if a ship is over 5000 blocks then its probably not a ship, so disable the motion invoking block
1 parent 12f25ab commit ff11a23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/ace/actually/pirates/blocks/entity/MotionInvokingBlockEntity.java

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package ace.actually.pirates.blocks.entity;
22

3+
import ace.actually.pirates.blocks.MotionInvokingBlock;
34
import ace.actually.pirates.util.PatternProcessor;
45
import ace.actually.pirates.Pirates;
56
import net.minecraft.block.Block;
@@ -136,6 +137,10 @@ public void collectBlocks(ServerWorld world, BlockPos center)
136137
{
137138
ShipAssemblyKt.createNewShipWithBlocks(center, SET, world);
138139
}
140+
else
141+
{
142+
MotionInvokingBlock.disarm(world,getPos());
143+
}
139144
}
140145

141146
private static final List<Block> a = List.of(Blocks.SAND,Blocks.STONE,Blocks.ICE,Blocks.PACKED_ICE,Blocks.BLUE_ICE,Blocks.KELP,Blocks.KELP_PLANT,Blocks.AIR,Blocks.WATER);

0 commit comments

Comments
 (0)