Skip to content

Commit 5c3e6ac

Browse files
committed
fixed datapacks
1 parent d0347ed commit 5c3e6ac

File tree

4 files changed

+9
-53
lines changed

4 files changed

+9
-53
lines changed

TODO.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Bugfixes
3232
[❌] Prevent superflat worlds generating regular worlds after a certain range
3333
[❌] Kicked for sending too many packets when spam clicking large army (rate-limit in server.properties?)
3434

35-
[❌] gui scale not working?
35+
3636

3737
[✔] Recreate tutorial world in 1.20.1
38-
[🟡] Fixed camera centering on the tutorial world
38+
[] Fixed camera centering on the tutorial world
3939
[✔] Mounted piglins don't heal from nether terrain
4040
[✔] Anchors are now saved correctly on server restart
4141

@@ -46,15 +46,14 @@ Quality of Life
4646
/sendwood <playername> <amount>
4747
/sendore <playername> <amount>
4848

49+
[✔] GUI scale in RTS camera now matches your options, but cannot be higher than 3
4950
[✔] Ravagers that are mounted no longer automatically aggro onto buildings
5051
- This prevents them hurting themselves from their own splash damage
51-
[🟡] Spiders now have a button to toggle whether they climb on walls or not
52-
[🟡] Slimes and magma cubes can now no-clip through log and leaf blocks
52+
[✔] Spiders now have a button to toggle whether they climb on walls or not
5353
[✔] Turn cheats on by default for sandbox mode
5454
[✔] Healing Fountains now heal 1% of hp per second instead of a flat rate, up to a maximum of 1hp/s
55-
[🟡] Dripstone is now mineable by workers, worth 1 ore each
55+
[] Dripstone is now mineable by workers, worth 1 ore each
5656

57-
[✔] language updates
5857

5958
Balancing
6059
---------

src/main/java/com/solegendary/reignofnether/guiscreen/TopdownGuiClientEvents.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class TopdownGuiClientEvents {
2424
private static final Minecraft MC = Minecraft.getInstance();
2525
private static int noScreenTicks = 0; // ticks that no screen has been opened
2626
private static boolean shouldPause = false;
27-
private static final int GUI_SCALE_MOD = 3;
27+
private static final int MAX_GUI_SCALE_MOD = 3;
2828

2929
// if no other screen is open and we've got orthoview enabled, open a screen based on shouldPause
3030
@SubscribeEvent
@@ -59,7 +59,9 @@ public static void onScreenClose(ScreenEvent.Closing evt) {
5959
@SubscribeEvent
6060
public static void onScreenOpen(ScreenEvent.Opening evt) {
6161
if (evt.getScreen() instanceof TopdownGui) {
62-
int i = MC.getWindow().calculateScale(GUI_SCALE_MOD, MC.isEnforceUnicode());
62+
int i = MC.getWindow().calculateScale(Math.min(MAX_GUI_SCALE_MOD, MC.options.guiScale().get()), MC.isEnforceUnicode());
63+
if (MC.options.guiScale().get() == 0)
64+
i = MAX_GUI_SCALE_MOD;
6365
MC.getWindow().setGuiScale(i);
6466
} else {
6567
int i = MC.getWindow().calculateScale(MC.options.guiScale().get(), MC.isEnforceUnicode());

src/main/java/com/solegendary/reignofnether/mixin/EntityMixin.java

-43
Original file line numberDiff line numberDiff line change
@@ -78,47 +78,4 @@ protected void getPercentFrozen(CallbackInfoReturnable<Float> cir) {
7878
float percent = (float)Math.min(this.getTicksFrozen(), 140) / (float)i;
7979
cir.setReturnValue(Math.min(percent, 0.5f));
8080
}
81-
82-
@Inject(
83-
method = "collide",
84-
at = @At("TAIL"),
85-
cancellable = true
86-
)
87-
public void collide(Vec3 pVec, CallbackInfoReturnable<Vec3> cir) {
88-
if (!getName().getString().contains("magma"))
89-
return;
90-
91-
Vec3 result = cir.getReturnValue();
92-
93-
boolean isNearLeafOrLog = false;
94-
95-
AABB aabb = getBoundingBox().inflate(0.5f);
96-
outerloop:
97-
for (int x = (int) aabb.minX; x < aabb.maxX; x++) {
98-
for (int y = (int) aabb.minY; y < aabb.maxY; y++) {
99-
for (int z = (int) aabb.minZ; z < aabb.maxZ; z++) {
100-
BlockState bs = level().getBlockState(new BlockPos(x,y,z));
101-
if (BlockUtils.isLogBlock(bs) ||
102-
BlockUtils.isFallingLogBlock(bs) ||
103-
BlockUtils.isLeafBlock(bs)) {
104-
isNearLeafOrLog = true;
105-
break outerloop;
106-
}
107-
}
108-
}
109-
}
110-
if (!isNearLeafOrLog)
111-
return;
112-
113-
BlockState bs = level().getBlockState(getOnPos());
114-
BlockState bsBelow = level().getBlockState(getOnPos().below());
115-
116-
if (BlockUtils.isLogBlock(bs) || BlockUtils.isLogBlock(bsBelow) ||
117-
BlockUtils.isFallingLogBlock(bs) || BlockUtils.isFallingLogBlock(bsBelow) ||
118-
BlockUtils.isLeafBlock(bs) || BlockUtils.isLeafBlock(bsBelow)) {
119-
cir.setReturnValue(new Vec3(pVec.x, pVec.y, pVec.z));
120-
} else {
121-
cir.setReturnValue(new Vec3(pVec.x, result.y, pVec.z));
122-
}
123-
}
12481
}

src/main/java/com/solegendary/reignofnether/unit/units/monsters/SlimeUnit.java

-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ public void tick() {
380380
}
381381

382382
// break leaves that are touched
383-
/*
384383
public void aiStep() {
385384
super.aiStep();
386385
if (this.isAlive() && getSize() >= 2) {
@@ -409,7 +408,6 @@ public void aiStep() {
409408
}
410409
}
411410
}
412-
*/
413411

414412
// stop moving if we overshoot our move target
415413
private double lastDistToMoveTargetSqr = 9999;

0 commit comments

Comments
 (0)