File tree Expand file tree Collapse file tree
src/main/java/com/solegendary/reignofnether Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
3434Balance
3535-------
36- [✔] The wretched wraith now fully immune to knockback and has no collision at all times
37-
3836
3937Languages
4038---------
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ apply plugin: 'maven-publish'
2323apply plugin : ' org.spongepowered.mixin'
2424apply plugin : ' org.parchmentmc.librarian.forgegradle'
2525
26- version = ' 1.3.3 '
26+ version = ' 1.3.2d '
2727group = ' com.solegendary.reignofnether' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2828archivesBaseName = ' reignofnether'
2929
Original file line number Diff line number Diff line change 5454public 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 ;
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ;}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments