|
15 | 15 | import net.minecraft.nbt.NbtUtils; |
16 | 16 | import net.minecraft.nbt.Tag; |
17 | 17 | import net.minecraft.network.chat.Component; |
18 | | -import net.minecraft.server.level.ServerLevel; |
19 | | -import net.minecraft.server.level.ServerPlayer; |
| 18 | +import net.minecraft.server.level.*; |
20 | 19 | import net.minecraft.world.item.ItemStack; |
21 | 20 | import net.minecraft.world.item.Items; |
| 21 | +import net.minecraft.world.level.block.state.BlockState; |
22 | 22 | import net.minecraft.world.phys.AABB; |
23 | 23 | import org.jetbrains.annotations.Nullable; |
24 | 24 |
|
@@ -131,7 +131,7 @@ cost and generally cheating the system. What would be best would be (somehow) ge |
131 | 131 | var enterDir = pair.getFirst(); |
132 | 132 | var herePos = pair.getSecond(); |
133 | 133 |
|
134 | | - var hereBs = level.getBlockState(herePos); |
| 134 | + BlockState hereBs = level.getLevel().getBlockState(herePos); //FUCK THIS LINE. THIS FUC- |
135 | 135 | if (!(hereBs.getBlock() instanceof ICircleComponent cmp)) { |
136 | 136 | continue; |
137 | 137 | } |
@@ -213,6 +213,10 @@ public CompoundTag save() { |
213 | 213 | out.put(TAG_PIGMENT, this.casterPigment.serializeToNBT()); |
214 | 214 |
|
215 | 215 | out.putLong(TAG_REACHED_NUMBER, this.reachedSlate); |
| 216 | + |
| 217 | + out.put(TAG_POSITIVE_POS,NbtUtils.writeBlockPos(this.positivePos)); |
| 218 | + out.put(TAG_NEGATIVE_POS,NbtUtils.writeBlockPos(this.negativePos)); |
| 219 | + |
216 | 220 | return out; |
217 | 221 | } |
218 | 222 |
|
|
0 commit comments