Debug attempt
This commit is contained in:
parent
32f4fe0c33
commit
2a865e9968
@ -184,10 +184,12 @@ public class MoneyMixinVault extends MoneyMixinAbstract
|
|||||||
Object objectFrom = getEconomyObject(fromId);
|
Object objectFrom = getEconomyObject(fromId);
|
||||||
OfflinePlayer opFrom = objectFrom instanceof OfflinePlayer ? (OfflinePlayer) objectFrom : null;
|
OfflinePlayer opFrom = objectFrom instanceof OfflinePlayer ? (OfflinePlayer) objectFrom : null;
|
||||||
String nameFrom = objectFrom instanceof String ? (String) objectFrom : null;
|
String nameFrom = objectFrom instanceof String ? (String) objectFrom : null;
|
||||||
|
if (fromId != null && opFrom == null && nameFrom == null) throw new RuntimeException("fromId not convertable: " + fromId);
|
||||||
|
|
||||||
Object objectTo = getEconomyObject(toId);
|
Object objectTo = getEconomyObject(toId);
|
||||||
OfflinePlayer opTo = objectTo instanceof OfflinePlayer ? (OfflinePlayer) objectTo : null;
|
OfflinePlayer opTo = objectTo instanceof OfflinePlayer ? (OfflinePlayer) objectTo : null;
|
||||||
String nameTo = objectTo instanceof String ? (String) objectTo : null;
|
String nameTo = objectTo instanceof String ? (String) objectTo : null;
|
||||||
|
if (toId != null && opTo == null && nameTo == null) throw new RuntimeException("toId not convertable: " + toId);
|
||||||
|
|
||||||
// Ensure the accounts exist
|
// Ensure the accounts exist
|
||||||
if (fromId != null) this.ensureExists(fromId);
|
if (fromId != null) this.ensureExists(fromId);
|
||||||
|
Loading…
Reference in New Issue
Block a user