Changeset ab7055e950e3c4d3c96db0a6ca914655c84895c6

Show
Ignore:
Timestamp:
08/11/07 09:45:16 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1186818316 +0200
git-parent:

[548df42f8807e2be470936e582eb1072ebeed33a]

git-author:
Christopher Jung <bktheg@web.de> 1186818316 +0200
Message:

getShipType wirft nun wieder NoSuchShipTypeExceptions?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/ships/Ship.java

    r548df42 rab7055e  
    31163116                if( !plaindata ) { 
    31173117                        ShipType type = (ShipType)db.get(ShipType.class, shiptype); 
    3118  
     3118                        if( type == null ) { 
     3119                                throw new NoSuchShipTypeException("Der Schiffstyp "+shiptype+" existiert nicht"); 
     3120                        } 
     3121                         
    31193122                        String picture = ""; 
    31203123                        if( shipdata == null ) { 
     
    31293132                } 
    31303133 
    3131                 return (shipdata != null ? shipdata : (ShipType)db.get(ShipType.class, shiptype)); 
     3134                if( shipdata != null ) { 
     3135                        return shipdata; 
     3136                } 
     3137                 
     3138                ShipType type = (ShipType)db.get(ShipType.class, shiptype); 
     3139                if( type == null ) { 
     3140                        throw new NoSuchShipTypeException("Der Schiffstyp "+shiptype+" existiert nicht"); 
     3141                } 
     3142                 
     3143                return type; 
    31323144        } 
    31333145