Skip to content

Commit 5106441

Browse files
committed
1.3.2d
1 parent 1f53293 commit 5106441

8 files changed

Lines changed: 15 additions & 16 deletions

File tree

TODO.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
1.20.1-1.3.3
2+
1.20.1-1.3.2d
33

44
[✔] Done and tested
55
[🟡] Partially done and/or needs testing
@@ -33,8 +33,6 @@ Quality of Life
3333

3434
Balance
3535
-------
36-
[✔] The wretched wraith now fully immune to knockback and has no collision at all times
37-
3836

3937
Languages
4038
---------

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ apply plugin: 'maven-publish'
2323
apply plugin: 'org.spongepowered.mixin'
2424
apply plugin: 'org.parchmentmc.librarian.forgegradle'
2525

26-
version = '1.3.3'
26+
version = '1.3.2d'
2727
group = 'com.solegendary.reignofnether' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2828
archivesBaseName = 'reignofnether'
2929

src/main/java/com/solegendary/reignofnether/ReignOfNether.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
public class ReignOfNether {
5555
public static final Logger LOGGER = LogManager.getLogger();
5656
public static final String MOD_ID = "reignofnether";
57-
public static final String VERSION_STRING = "1.3.3";
57+
public static final String VERSION_STRING = "1.3.2d";
5858

5959
// Fields from ClientReset
6060
public static final Field handshakeField;

src/main/java/com/solegendary/reignofnether/ability/BuildingAbilityClientboundPacket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public boolean handle(Supplier<NetworkEvent.Context> ctx) {
4646
final var success = new AtomicBoolean(false);
4747
ctx.get().enqueueWork(() -> {
4848
BuildingPlacement building = BuildingUtils.findBuilding(true, buildingPos);
49-
if (building.getBuilding() instanceof Library) {
49+
if (building != null && building.getBuilding() instanceof Library) {
5050
Ability ability = null;
5151
for (Ability abl : building.getAbilities())
5252
if (abl.action == abilityAction)
@@ -58,7 +58,7 @@ public boolean handle(Supplier<NetworkEvent.Context> ctx) {
5858
building.getDataStorage().setData(Library.AUTO_CAST_ENCHANT, enchantAbility);
5959
}
6060
}
61-
else if (building.getBuilding() instanceof Blacksmith blacksmith) {
61+
else if (building != null && building.getBuilding() instanceof Blacksmith) {
6262
Ability ability = null;
6363
for (Ability abl : building.getAbilities())
6464
if (abl.action == abilityAction)

src/main/java/com/solegendary/reignofnether/ability/BuildingAbilityServerboundPacket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public boolean handle(Supplier<NetworkEvent.Context> ctx) {
5757
}
5858

5959
BuildingPlacement building = BuildingUtils.findBuilding(false, buildingPos);
60-
if (building.getBuilding() instanceof Library) {
60+
if (building != null && building.getBuilding() instanceof Library) {
6161
if (!player.getName().getString().equals(building.ownerName)) {
6262
ReignOfNether.LOGGER.warn("EnchantEquipAbilityServerboundPacket: Tried to process packet from " + player.getName() + " for: " + building.ownerName);
6363
success.set(false);
@@ -74,7 +74,7 @@ public boolean handle(Supplier<NetworkEvent.Context> ctx) {
7474
building.getDataStorage().setData(Library.AUTO_CAST_ENCHANT, enchantAbility);
7575
}
7676
}
77-
else if (building.getBuilding() instanceof Blacksmith blacksmith) {
77+
else if (building != null && building.getBuilding() instanceof Blacksmith) {
7878
if (!player.getName().getString().equals(building.ownerName)) {
7979
ReignOfNether.LOGGER.warn("EnchantEquipAbilityServerboundPacket: Tried to process packet from " + player.getName() + " for: " + building.ownerName);
8080
success.set(false);

src/main/java/com/solegendary/reignofnether/building/BuildingServerEvents.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,11 @@ public static void onPlayerBlockBreak(BlockEvent.BreakEvent evt) {
615615
public static void onLivingSpawn(MobSpawnEvent.FinalizeSpawn evt) {
616616
if (evt.getSpawnType() == MobSpawnType.SPAWNER) {
617617
if (evt.getSpawner() != null && evt.getSpawner().getSpawnerBlockEntity() != null) {
618-
BlockEntity be = evt.getSpawner().getSpawnerBlockEntity();
619618
BlockPos bp = evt.getSpawner().getSpawnerBlockEntity().getBlockPos();
620-
if (BuildingUtils.findBuilding(false, bp).getBuilding() instanceof Dungeon ||
621-
BuildingUtils.findBuilding(false, bp).getBuilding() instanceof FlameSanctuary) {
619+
BuildingPlacement bpl = BuildingUtils.findBuilding(false, bp);
620+
if (bpl != null &&
621+
(bpl.getBuilding() instanceof Dungeon ||
622+
bpl.getBuilding() instanceof FlameSanctuary)) {
622623
evt.getEntity().discard();
623624
}
624625
}

src/main/java/com/solegendary/reignofnether/building/buildings/monsters/Dungeon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Dungeon() {
4747

4848
this.explodeChance = 0.2f;
4949
this.productions.add(ProductionItems.CREEPER, Keybindings.keyQ);
50-
this.productions.add(ProductionItems.WRAITH, Keybindings.keyW);
50+
//this.productions.add(ProductionItems.WRAITH, Keybindings.keyW);
5151
}
5252

5353
public Faction getFaction() {return Faction.MONSTERS;}

src/main/java/com/solegendary/reignofnether/building/buildings/monsters/Graveyard.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ public Graveyard() {
4646

4747
this.explodeChance = 0.2f;
4848

49-
this.abilities.add(new SetGraveyardReleaseOff(), Keybindings.keyO);
50-
this.abilities.add(new SetGraveyardReleaseOn(), Keybindings.keyO);
49+
//this.abilities.add(new SetGraveyardReleaseOff(), Keybindings.keyO);
50+
//this.abilities.add(new SetGraveyardReleaseOn(), Keybindings.keyO);
5151

5252
this.productions.add(ProductionItems.ZOMBIE, Keybindings.keyQ);
5353
this.productions.add(ProductionItems.HUSK, Keybindings.keyQ);
5454
this.productions.add(ProductionItems.DROWNED, Keybindings.keyW);
5555
this.productions.add(ProductionItems.SKELETON, Keybindings.keyE);
5656
this.productions.add(ProductionItems.STRAY, Keybindings.keyE);
5757
this.productions.add(ProductionItems.BOGGED, Keybindings.keyR);
58-
this.productions.add(ProductionItems.RESEARCH_OVERFLOWING_GRAVEYARD, Keybindings.keyT);
58+
//this.productions.add(ProductionItems.RESEARCH_OVERFLOWING_GRAVEYARD, Keybindings.keyT);
5959
}
6060

6161
@Override

0 commit comments

Comments
 (0)