File tree Expand file tree Collapse file tree
src/main/java/wayoftime/bloodmagic/util/handler/event Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import wayoftime .bloodmagic .demonaura .WillChunk ;
3535import wayoftime .bloodmagic .demonaura .WorldDemonWillHandler ;
3636import wayoftime .bloodmagic .potion .BloodMagicPotions ;
37+ import wayoftime .bloodmagic .util .BMLog ;
3738import wayoftime .bloodmagic .will .DemonWillHolder ;
3839import wayoftime .bloodmagic .will .PlayerDemonWillHandler ;
3940
@@ -196,14 +197,15 @@ public void chunkSave(ChunkDataEvent.Save event)
196197
197198 ChunkPos loc = event .getChunk ().getPos ();
198199
199- CompoundTag nbt = new CompoundTag ();
200- event .getData ().put ("BloodMagic" , nbt );
201200
202201 WillChunk ac = WorldDemonWillHandler .getWillChunk (rl , loc .x , loc .z );
203202 if (ac != null )
204203 {
204+ CompoundTag nbt = new CompoundTag ();
205205 nbt .putShort ("base" , ac .getBase ());
206206 ac .getCurrentWill ().writeToNBT (nbt , "current" );
207+
208+ event .getData ().put ("BloodMagic" , nbt );
207209// if (event.getChunk() instanceof Chunk && !((Chunk) event.getChunk()).setLoaded(loaded);)
208210// event.getWorld().getChunkSource().getChunk(p_62228_, p_62229_, p_62230_)
209211// if (!event.getWorld().getChunkSource().isEntityTickingChunk(event.getChunk().getPos()))
You can’t perform that action at this time.
0 commit comments