Conditions | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package de.pewpewproject.lasertag.mixin; |
||
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 |