mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-10 09:46:24 +00:00
remove debug stuff
This commit is contained in:
@@ -25,11 +25,7 @@ public class Injector<T> {
|
||||
for(Field field : ReflectionUtil.getFields(object.getClass())) {
|
||||
Inject inject = field.getAnnotation(Inject.class);
|
||||
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())) {
|
||||
System.out.println("injecting...");
|
||||
int mod = field.getModifiers();
|
||||
if(Modifier.isFinal(mod)) {
|
||||
throw new InjectionException("Attempted to inject final field: " + field);
|
||||
|
||||
@@ -62,7 +62,6 @@ public class LootTable {
|
||||
newStack.setAmount(1);
|
||||
int slot = r.nextInt(i.getSize());
|
||||
ItemStack slotItem = i.getItem(slot);
|
||||
System.out.println("attempt: " + (slotItem == null ? null : slotItem.getHandle()));
|
||||
if(slotItem == null) {
|
||||
i.setItem(slot, newStack);
|
||||
stack.setAmount(stack.getAmount() - 1);
|
||||
|
||||
Reference in New Issue
Block a user