Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Feb 22, 2025
1 parent 20e8665 commit b968736
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
13 changes: 13 additions & 0 deletions src/main/java/reobf/proghatches/block/BlockOpaqueBSGlass.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package reobf.proghatches.block;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class BlockOpaqueBSGlass extends Block{

protected BlockOpaqueBSGlass(Material materialIn) {
super(materialIn);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -722,15 +722,15 @@ public FluidStack[] getFluidInputs() {
}

public int space() {
long ret = Integer.MAX_VALUE;
long ret = Long.MAX_VALUE;
boolean found = false;
for (int ix = 0; ix < i; ix++) {

if (mStoredItemInternalSingle[ix] != null && mStoredItemInternalSingle[ix].stackSize > 0) {
long now = 0;
if (mStoredItemInternal[ix] != null) now = mStoredItemInternal[ix].stackSize();
long tmp = (itemLimit() - now) / mStoredItemInternalSingle[ix].stackSize;
if (tmp < ret) {
if (tmp <= ret) {
ret = tmp;
found = true;
}
Expand All @@ -742,7 +742,7 @@ public int space() {
long now = mStoredFluidInternal[ix].getFluidAmount();

long tmp = (fluidLimit() - now) / mStoredFluidInternalSingle[ix].getFluidAmount();
if (tmp < ret) {
if (tmp <= ret) {
ret = tmp;
found = true;
}
Expand Down Expand Up @@ -2121,7 +2121,7 @@ public void getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDat

}
String cpinfo = "";
int copies = sub.getInteger("possibleCopies");
long copies = sub.getLong("possibleCopies");
if (copies == -1 && (sub.getBoolean("locked"))// if not locked, do
// not warn about
// the copies
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/reobf/proghatches/main/MyMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import appeng.api.config.Upgrades;
import appeng.core.features.registries.InterfaceTerminalRegistry;
import appeng.items.tools.ToolMemoryCard;
import bartworks.API.BorosilicateGlass;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
Expand Down Expand Up @@ -274,8 +275,11 @@ public void preInit(FMLPreInitializationEvent event) {

public void init(FMLInitializationEvent event) {
proxy.init(event);


/* for(int i=0;i<GTValues.V.length;i++)
BorosilicateGlass.registerGlass(block, i, i);*/
new KeyBindings();


AEApi.instance()
.partHelper()
Expand Down

0 comments on commit b968736

Please sign in to comment.