fix end transfer deleting capability data
This commit is contained in:
parent
baac41e151
commit
9a360fd17d
1 changed files with 18 additions and 20 deletions
|
@ -69,7 +69,6 @@ public class HexCapabilities {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (evt.isWasDeath()) {
|
|
||||||
var proto = evt.getOriginal();
|
var proto = evt.getOriginal();
|
||||||
// Copy caps from this to new player
|
// Copy caps from this to new player
|
||||||
proto.reviveCaps();
|
proto.reviveCaps();
|
||||||
|
@ -91,7 +90,6 @@ public class HexCapabilities {
|
||||||
});
|
});
|
||||||
proto.invalidateCaps();
|
proto.invalidateCaps();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void syncCapsOnLogin(PlayerEvent.PlayerLoggedInEvent evt) {
|
public static void syncCapsOnLogin(PlayerEvent.PlayerLoggedInEvent evt) {
|
||||||
|
|
Loading…
Reference in a new issue