@ -16,7 +16,6 @@ import engine.net.client.ClientConnection;
@@ -16,7 +16,6 @@ import engine.net.client.ClientConnection;
import engine.net.client.msg.* ;
import engine.objects.* ;
import engine.powers.PowersBase ;
import engine.powers.poweractions.AbstractPowerAction ;
import org.pmw.tinylog.Logger ;
import java.util.ArrayList ;
@ -532,9 +531,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -532,9 +531,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
if ( waterbucketBypass = = false ) {
String powerString = item . template . item_power_action . keySet ( ) . iterator ( ) . next ( ) ;
AbstractPowerAction powerAction = PowersManager . powerActions ByIDString . get ( powerString ) ;
PowersBase powerAction = PowersManager . powersBase ByIDString . get ( powerString ) ;
int powerValue = item . template . item_power_action . get ( powerString ) [ 0 ] ;
PowersManager . applyPower ( player , target , Vector3fImmutable . ZERO , powerAction . getUUID ( ) , powerValue , true ) ;
PowersManager . applyPower ( player , target , Vector3fImmutable . ZERO , powerAction . getToken ( ) , powerValue , true ) ;
}
itemMan . consume ( item ) ;
} else //just remove the item at this point