| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package de.pewpewproject.lasertag.networking.client.callbacks; |
||
| 15 | public class EliminationStateResetCallback implements ClientPlayNetworking.PlayChannelHandler { |
||
| 16 | @Override |
||
| 17 | public void receive(MinecraftClient client, ClientPlayNetworkHandler handler, PacketByteBuf buf, PacketSender responseSender) { |
||
| 18 | |||
| 19 | try { |
||
| 20 | |||
| 21 | // Reset the client elimination state manager |
||
| 22 | client.world.getClientLasertagManager().getEliminationManager().reset(); |
||
| 23 | } catch (Exception ex) { |
||
| 24 | LasertagMod.LOGGER.error("Error in EliminationStateResetCallback", ex); |
||
| 25 | throw ex; |
||
| 26 | } |
||
| 29 |