fixed crash get bonus
This commit is contained in:
		@@ -541,7 +541,6 @@ public void shieldPiece(UUID uuid){
 | 
			
		||||
     * @param uuid the UUID of the piece to unshield
 | 
			
		||||
     */
 | 
			
		||||
    public void unshieldPiece(UUID uuid){
 | 
			
		||||
 | 
			
		||||
        pieces.get(uuid).deactivateShield();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -150,6 +150,9 @@ public void rotateInit() {
 | 
			
		||||
     * This adds a visual shield effect in the form of a rotating ring.
 | 
			
		||||
     */
 | 
			
		||||
    public void activateShield(){
 | 
			
		||||
        if(shieldRing != null){
 | 
			
		||||
            deactivateShield();
 | 
			
		||||
        }
 | 
			
		||||
        shieldRing = assetManager.loadModel(Asset.shieldRing.getModelPath());
 | 
			
		||||
        shieldRing.scale(1f);
 | 
			
		||||
        shieldRing.rotate((float) Math.toRadians(0), 0, (float) Math.toRadians(0));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user