Skip to content

Commit

Permalink
Theoretical fix for #4480.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIIL committed Aug 31, 2019
1 parent 72262b6 commit b76c9bc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BuildCraftAPI
Submodule BuildCraftAPI updated 1 files
+1 −8 .travis.yml
2 changes: 1 addition & 1 deletion buildcraft_resources/changelog/7.99.24.3
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Bug fixes:

* [#4468] Stopped buildcraft tiles from uselessly logging that the *client* lacked ownership information (despite ownership only being used on the server).
* [#4471] Fixed a crash when spawning block breaking particles in an invalid state.
* [#4472] Add frame and mining box validation checks when the quarry is read from NBT.
* [#4472] Add frame and mining box validation checks when the quarry is read from NBT.
5 changes: 4 additions & 1 deletion common/buildcraft/energy/generation/OilGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import buildcraft.lib.misc.VecUtil;
import buildcraft.lib.misc.data.Box;

import buildcraft.core.BCCoreBlocks;
import buildcraft.energy.BCEnergyConfig;
import buildcraft.energy.generation.OilGenStructure.GenByPredicate;
import buildcraft.energy.generation.OilGenStructure.ReplaceType;
Expand Down Expand Up @@ -189,7 +190,9 @@ public static List<OilGenStructure> getStructures(World world, int cx, int cz) {
// Generate a spring at the very bottom
if (type == GenType.LARGE) {
structures.add(createTube(new BlockPos(x, 1, z), wellY, radius, Axis.Y));
structures.add(createSpring(new BlockPos(x, 0, z)));
if (BCCoreBlocks.spring!= null) {
structures.add(createSpring(new BlockPos(x, 0, z)));
}
}
}
return structures;
Expand Down
5 changes: 3 additions & 2 deletions common/buildcraft/lib/tile/TileBC_Neptune.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,9 @@ public void onPlacedBy(EntityLivingBase placer, ItemStack stack) {
public void onPlayerOpen(EntityPlayer player) {
if (owner == null) {
owner = player.getGameProfile();
if (!owner.isComplete()) {
throw new IllegalArgumentException("Incomplete owner! ( " + player + " -> " + owner + " )");
if (owner.getId() == null) {
// Basically everything relies on the UUID
throw new IllegalArgumentException("No UUID for owner! ( " + player.getClass() + " " + player + " -> " + owner + " )");
}
}
sendNetworkUpdate(NET_GUI_DATA, player);
Expand Down

0 comments on commit b76c9bc

Please sign in to comment.