File tree 4 files changed +4
-13
lines changed
src/main/java/com/solegendary/reignofnether/unit
4 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Bugfixes
34
34
[❌] Recreate tutorial world in 1.20.1
35
35
[🟡] Fixed camera centering on the tutorial world
36
36
[🟡] Mounted piglins don't heal from nether terrain
37
- [❌ ] Anchors not saving properly?
37
+ [🟡 ] Anchors not saving properly?
38
38
39
39
Quality of Life
40
40
---------------
Original file line number Diff line number Diff line change 1
1
package com .solegendary .reignofnether .unit ;
2
2
3
- import com .solegendary .reignofnether .resources .Resources ;
4
3
import net .minecraft .core .BlockPos ;
5
4
6
5
public class UnitSave {
Original file line number Diff line number Diff line change @@ -64,19 +64,12 @@ public CompoundTag save(CompoundTag tag) {
64
64
ListTag list = new ListTag ();
65
65
this .units .forEach (u -> {
66
66
CompoundTag cTag = new CompoundTag ();
67
-
68
67
cTag .putString ("name" , u .name );
69
68
cTag .putString ("ownerName" , u .ownerName );
70
69
cTag .putString ("uuid" , u .uuid );
71
- if (u instanceof Unit unit && Unit .hasAnchor (unit )) {
72
- cTag .putInt ("anchorPosX" , u .anchorPos .getX ());
73
- cTag .putInt ("anchorPosY" , u .anchorPos .getY ());
74
- cTag .putInt ("anchorPosZ" , u .anchorPos .getZ ());
75
- } else {
76
- cTag .putInt ("anchorPosX" , 0 );
77
- cTag .putInt ("anchorPosY" , 0 );
78
- cTag .putInt ("anchorPosZ" , 0 );
79
- }
70
+ cTag .putInt ("anchorPosX" , u .anchorPos .getX ());
71
+ cTag .putInt ("anchorPosY" , u .anchorPos .getY ());
72
+ cTag .putInt ("anchorPosZ" , u .anchorPos .getZ ());
80
73
list .add (cTag );
81
74
82
75
ReignOfNether .LOGGER .info ("UnitSaveData.save: " + u .ownerName + "|" + u .name + "|" + u .uuid );
Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ private static void checkAndRetreatToAnchor(Unit unit) {
228
228
!le .getOnPos ().equals (unit .getAnchor ())) {
229
229
fullResetBehaviours (unit );
230
230
unit .getMoveGoal ().setMoveTarget (unit .getAnchor ());
231
- System .out .println ("retreating!" );
232
231
}
233
232
}
234
233
You can’t perform that action at this time.
0 commit comments