mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 16:35:50 +00:00
remove debug stuff
This commit is contained in:
parent
4171768cc9
commit
83f981111a
@ -25,11 +25,7 @@ public class Injector<T> {
|
|||||||
for(Field field : ReflectionUtil.getFields(object.getClass())) {
|
for(Field field : ReflectionUtil.getFields(object.getClass())) {
|
||||||
Inject inject = field.getAnnotation(Inject.class);
|
Inject inject = field.getAnnotation(Inject.class);
|
||||||
if(inject == null) continue;
|
if(inject == null) continue;
|
||||||
|
|
||||||
System.out.println(field);
|
|
||||||
System.out.println("attempting to inject " + value.getClass() + " to " + field.getClass());
|
|
||||||
if(value.getClass().equals(field.getType()) || targets.contains(field.getType())) {
|
if(value.getClass().equals(field.getType()) || targets.contains(field.getType())) {
|
||||||
System.out.println("injecting...");
|
|
||||||
int mod = field.getModifiers();
|
int mod = field.getModifiers();
|
||||||
if(Modifier.isFinal(mod)) {
|
if(Modifier.isFinal(mod)) {
|
||||||
throw new InjectionException("Attempted to inject final field: " + field);
|
throw new InjectionException("Attempted to inject final field: " + field);
|
||||||
|
@ -62,7 +62,6 @@ public class LootTable {
|
|||||||
newStack.setAmount(1);
|
newStack.setAmount(1);
|
||||||
int slot = r.nextInt(i.getSize());
|
int slot = r.nextInt(i.getSize());
|
||||||
ItemStack slotItem = i.getItem(slot);
|
ItemStack slotItem = i.getItem(slot);
|
||||||
System.out.println("attempt: " + (slotItem == null ? null : slotItem.getHandle()));
|
|
||||||
if(slotItem == null) {
|
if(slotItem == null) {
|
||||||
i.setItem(slot, newStack);
|
i.setItem(slot, newStack);
|
||||||
stack.setAmount(stack.getAmount() - 1);
|
stack.setAmount(stack.getAmount() - 1);
|
||||||
|
@ -26,7 +26,6 @@ public class FabricInventory implements Inventory {
|
|||||||
@Override
|
@Override
|
||||||
public ItemStack getItem(int slot) {
|
public ItemStack getItem(int slot) {
|
||||||
net.minecraft.item.ItemStack itemStack = delegate.getStack(slot);
|
net.minecraft.item.ItemStack itemStack = delegate.getStack(slot);
|
||||||
System.out.println("item @ " + slot + " GET: " + itemStack);
|
|
||||||
return itemStack.getItem() == Items.AIR ? null : FabricAdapter.adapt(itemStack);
|
return itemStack.getItem() == Items.AIR ? null : FabricAdapter.adapt(itemStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,6 +33,5 @@ public class FabricInventory implements Inventory {
|
|||||||
public void setItem(int slot, ItemStack newStack) {
|
public void setItem(int slot, ItemStack newStack) {
|
||||||
System.out.println("item @ " + slot + ": " + newStack.getHandle());
|
System.out.println("item @ " + slot + ": " + newStack.getHandle());
|
||||||
delegate.setStack(slot, FabricAdapter.adapt(newStack));
|
delegate.setStack(slot, FabricAdapter.adapt(newStack));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user