Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package de.pewpewproject.lasertag.mixin; |
||
12 | @Mixin(World.class) |
||
13 | public abstract class WorldMixin { |
||
14 | |||
15 | @Inject(method = "tickBlockEntities()V", at = @At("HEAD")) |
||
16 | private void onTickBlockEntities(CallbackInfo ci) { |
||
17 | |||
18 | // Do not tick on clients |
||
19 | if (((World)(Object)this).isClient) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | ((World)(Object)this).getServer().getOverworld().getServerLasertagManager().getBlockTickManager().tick(); |
||
24 | } |
||
26 |